<?php

use yii\helpers\Html;

/* @var $this \yii\web\View */
/* @var $content string */


if (Yii::$app->controller->action->id === 'login') {
    /**
     * Do not use this code in your template. Remove it.
     * Instead, use the code  $this->layout = '//main-login'; in your controller.
     */
    echo $this->render(
        'main-login',
        ['content' => $content]
    );
} else {

    if (class_exists('frontend\assets\AppAsset')) {
        frontend\assets\AppAsset::register($this);
    }

    dmstr\web\AdminLteAsset::register($this);

    $directoryAsset = Yii::$app->assetManager->getPublishedUrl('@vendor/almasaeed2010/adminlte/dist');
    ?>
    <?php $this->beginPage() ?>
    <!DOCTYPE html>
    <html lang="<?= Yii::$app->language ?>">
    <head>
        <meta charset="<?= Yii::$app->charset ?>"/>
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <?= Html::csrfMetaTags() ?>
        <title><?= Html::encode($this->title) ?></title>
        <?php $this->head() ?>
    </head>
    <style>

        .content {
            overflow: hidden;
        }

        td {
            max-width: 300px;
            overflow: hidden;
            word-break: break-all;
            word-wrap: break-word;
            white-space: normal;
        }

        .searchBody {
            position: relative;
            padding: 10px 0;
            overflow: hidden;
            max-height: 95px;
            min-width: 770px;
            min-height: 55px;
        }

        #new_search {
            overflow: hidden;
            padding-right: 100px;
        }

        .search_input, .search_input_date {
            display: flex;
            align-items: center;
            justify-content: center;
            float: left;
            margin-right: 20px;
            margin-bottom: 5px;
        }

        .form-control {
            width: 120px;
        }

        .addBtn {
            float: right;
            position: absolute;
            top: 10px;
            right: 0;

        }

        .pagination {
            float: right;
        }

        .search_input, .form-group {
            float: left;
            margin-right: 20px;

        }

        /*.cha-xun {*/
        /*float: right;*/
        /*margin-right: 100px;*/
        /*margin-bottom: 0;*/
        /*}*/

        .input-group.date {
            width: 200px;
        }

        .mr {
            margin-left: -10px;
        }

        .cao-zuo {
            margin: 1px 10px 1px 0;
        }

        td Button {
            float: left;
        }

        #content-wrapper-div {
            width: 100%;
            height: 100%;
            overflow: scroll;
        }

        .checkedCate {
            opacity: .5;
        }
        .btn-resource{
            border-radius: 0;
        }
        #w1{
            overflow: scroll;
        }

    </style>
    <body class="hold-transition skin-blue sidebar-mini">
    <?php $this->beginBody() ?>
    <div class="wrapper">

        <?= $this->render(
            'header.php',
            ['directoryAsset' => $directoryAsset]
        ) ?>

        <?= $this->render(
            'left.php',
            ['directoryAsset' => $directoryAsset]
        )
        ?>

        <?= $this->render(
            'content.php',
            ['content' => $content, 'directoryAsset' => $directoryAsset]
        ) ?>

    </div>

    <?php $this->endBody() ?>
    </body>
    </html>
    <?php $this->endPage() ?>
<?php } ?>
